<?python from genshi import HTML 
	if tag.state[2] != 0:
		state = "FAILED"
	elif tag.state[0] != 0:
		state = "UNKNOWN"
	else:
		state = "OK"
?>


<a href="${'/tag/%s/' % tag.id}">
<span title="${'%d Failed | %d Unknown | %d OK' % (tag.state[2],tag.state[0],tag.state[1])}" class="${'STATE-%s'%state}">

${tag.title}

</span></a> 